package cn.smdq.ch.common.constant;

public interface SecurityConstants {

    String REDIS_TOKEN_STORE_PREFIX = "hope_";

    /**
     * 基础的角色
     */
    String BASE_ROLE = "ROLE_USER";

    String AUTH_SERVER_ID = "hope-auth-center";

    /**
     * 用户信息头
     */
    String USER_HEAD = "x-user-header";

    String CLIENT_DETAIL_COLUMN_LIST = "client_id,client_secret,resource_ids,scope,authorized_grant_types,web_server_redirect_uri, " +
            "authorities,access_token_validity,refresh_token_validity,additional_information,autoapprove";

    String BASE_SELECT_STATEMENT = "select " + CLIENT_DETAIL_COLUMN_LIST + " from system_oauth_client_details";

    String DEFAULT_SELECT_STATEMENT = BASE_SELECT_STATEMENT + " where client_id = ?";

    String DEFAULT_FIND_STATEMENT = BASE_SELECT_STATEMENT + " order by client_id";

}
